///////////////////////////////////////////////////////////////////////////////
//	Data types
///////////////////////////////////////////////////////////////////////////////

DATA_TYPE SPRITE_LIST "Fonts"
{
	LIST_FILE "..\fonts\font.list"
}

DATA_TYPE SPRITE_LIST "Sprites"
{
	LIST_FILE "..\sprites\sprite.list"
}

DATA_TYPE LIST "Texts"
{
	-1 = "default"
	LIST_FILE "..\text\text.gts"
}

DATA_TYPE LIST "boolean"
{
	0	= "false"
	1	= "true"
}

DATA_TYPE LIST "V_Align_options"
{
	0	= "TOP"	
	1	= "CENTER"
	2	= "BOTTOM"
}

DATA_TYPE LIST "H_Align_options"
{
	0	= "LEFT"
	1	= "CENTER"
	2	= "RIGHT"	
}
///////////////////////////////////////////////////////////////////////////////
//	Templates
///////////////////////////////////////////////////////////////////////////////

TEMPLATE OBJECT_LAYER "SpriteBased"
{ 
	ID 0	
	SPRITE_LIST "Sprites"
	SET SPRITE PARAM[0]
	SET MODULE -1
	SET FRAME PARAM[1]		
	SET ANIM PARAM[4]
	SET AFRAME 0
	PARAMS
	{
		0 	"spriteID" "" TYPE "Sprites" EXPORT UINT8
		0 	"frameID" "-1 == show anim frame instead" TYPE MODULESDESC[PARAM[0]] EXPORT INT16
		1	"isVisible" "" TYPE "boolean" EXPORT UINT8			
		0	"animID" "-1 == none" TYPE ANIMSDESC[PARAM[0]] EXPORT INT8
		-1	"animCount" "-1 == loop" TYPE ANIMSDESC[PARAM[0]] EXPORT INT8		
	}	
}

TEMPLATE OBJECT_LAYER "SelectPoint"
{
	ID 2	
	SPRITE "cross.sprite"
	SET MODULE -1	
	SET FRAME 0
		
	PARAMS
	{
	}
}

TEMPLATE OBJECT_LAYER "StringBased"
{
	ID 3	
	SPRITE "font.sprite"	
	SET MODULE -1	
	SET FRAME 0	
	
	PARAMS
	{
		0 	"fontID" "" TYPE "Fonts" EXPORT UINT8
		0 	"textID" "" TYPE "Texts" EXPORT INT16
		1	"isVisible" "" TYPE "boolean" EXPORT UINT8		
		0	"hAllign" "" TYPE "H_Align_options" EXPORT UINT8		
	}	
}

TEMPLATE OBJECT_LAYER "StringRect"
{
	ID 4	
	SPRITE "dummy.sprite"	
	SET MODULE -1	
	SET FRAME 0	
	SET RECT_AREA 0 0 PARAM[5] PARAM[6] RGB(0, 0, 255)
	
	PARAMS
	{
		0 	"fontID" "" TYPE "Fonts" EXPORT UINT8
		0 	"textID" "" TYPE "Texts" EXPORT INT16
		1	"isVisible" "" TYPE "boolean" EXPORT UINT8		
		0	"hAllign" "" TYPE "H_Align_options" EXPORT UINT8		
		0	"vAllign" "" TYPE "V_Align_options" EXPORT UINT8	
		40	"width"	"" FLAGS {W} EXPORT UINT16
		20	"height" "" FLAGS {H} EXPORT UINT16		
	}	
}
